import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-05
 * Time: 18:22
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tmp = n;
        int factorial = 1;
        while (tmp > 0) {
            factorial *= tmp;
            tmp--;
        }
        System.out.println(n + "! = " + factorial);
    }
}
